﻿<%@ Application Language="C#" %>

<script runat="server">

     protected void Application_Start(object sender, EventArgs e)
    {
    }
    protected void Session_Start(object sender, EventArgs e)
    {
    }
    protected void Application_BeginRequest(object sender, EventArgs e)
    {
    }
    protected void Application_AuthenticateRequest(object sender, EventArgs e)
    {
    }
    protected void Application_Error(object sender, EventArgs e)
    {


        //// Code that runs when an unhandled error occurs
        //System.Web.HttpContext context = HttpContext.Current;
        //System.Exception ex = Context.Server.GetLastError();
        ////LogError(e); //Your own logging function...


        //System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage("robot@salvix.it", "web.support@salvix.net");
        //message.Subject = "Errore Extranet";
        //message.IsBodyHtml = false;
        //message.Body = "Si è verficato un errore sulla extranet:";
        //message.Body += ex.ToString();

        //System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("127.0.0.1");
        //smtp.Send(message);



        //context.Server.ClearError();
        //Response.Redirect("error.aspx");
        
         
    }
    protected void Session_End(object sender, EventArgs e)
    {
    }
    protected void Application_End(object sender, EventArgs e)
    {
    }
       
</script>
